﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Model
{
    /// <summary>
    /// ReResourceEvaluateRecord:实体类(属性说明自动提取数据库字段的描述信息)
    /// </summary>
    [Serializable]
    public partial class ReResourceEvaluateRecord
    {
        public ReResourceEvaluateRecord()
        { }
        #region Model
        private int _resourceid;
        private int? _fatherresource;
        private string _resourcename;
        private string _retypecode;
        private int? _studentid;
        private int? _evaluatecontent;
        private string _usegrade;
        private int? _useclass;
        private int? _lessonid;
        private DateTime? _evaluatetime;
        private long _evaluatetimestamp = 0;
        private int? _evaluatepiont;
        private int _evaluatetype=1; //默认课堂
        private DateTime? _recordtime;

        public int ID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int ResourceID
        {
            set { _resourceid = value; }
            get { return _resourceid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? FatherResource
        {
            set { _fatherresource = value; }
            get { return _fatherresource; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string ResourceName
        {
            set { _resourcename = value; }
            get { return _resourcename; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string ReTypeCode
        {
            set { _retypecode = value; }
            get { return _retypecode; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? StudentID
        {
            set { _studentid = value; }
            get { return _studentid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? evaluateContent
        {
            set { _evaluatecontent = value; }
            get { return _evaluatecontent; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string UseGrade
        {
            set { _usegrade = value; }
            get { return _usegrade; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? UseClass
        {
            set { _useclass = value; }
            get { return _useclass; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? LessonID
        {
            set { _lessonid = value; }
            get { return _lessonid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public DateTime? EvaluateTime
        {
            set { _evaluatetime = value; }
            get { return _evaluatetime == null ? EvaluateTimeStamp > 0 ? DateTime.Parse("1970-01-01T00:00:00Z").AddMilliseconds(EvaluateTimeStamp) : _evaluatetime : _evaluatetime; }
        }
        /// <summary>
        /// 
        /// </summary>
        public long EvaluateTimeStamp
        {
            get { return _evaluatetimestamp; }
            set { _evaluatetimestamp = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? Evaluatepiont
        {
            set { _evaluatepiont = value; }
            get { return _evaluatepiont; }
        }
        /// <summary>
        /// 评价类型 0备课，1课堂
        /// </summary>
        public int EvaluateType
        {
            get { return _evaluatetype; }
            set { _evaluatetype = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        public DateTime? RecordTime
        {
            set { _recordtime = value; }
            get { return _recordtime; }
        }
        #endregion Model
    }
}
